<?php
require_once 'loader.php';
require_once 'Mobitv/Cronjobs/Reporting.php';
$reporting = new Mobitv_Cronjobs_Reporting();

// Update at the end of day

$today = date('Y-m-d');
$reporting->setDate($today);
$reporting->distinctUpdateDaily();

echo "UPDATE REPORTING ON " . date("Y-m-d H:i:s") . "\n";